<?php
/**
 * 公共接口阐述
 */
$PUBLICPARAM = "aid={#aid#}&key={#key#}&format=json&encoding=utf-8&jsonmode=php";
$ORDERPARAM = "sid={#sid#}&skey={#skey#}&aid={#aid#}&key={#key#}&format=json&encoding=utf-8&jsonmode=php";  //订单是独立的
$APIURL = "api.yudingbao.net";
/**
 * 酒店接口地址信息
 * url 接口地址
 * param 参数
 * calltype 调用类型，POST,GET或者SOAP等
 */
$URLINFOLIST = array(
	'hotelsearch' => array(
		'url' => 'http://'.$APIURL.'/v1.0/hotel/search.ashx?act=getHotelList&country={#country#}&regionCode={#regionCode#}&provinceCode{#provinceCode#}&cityCode={#cityCode#}&districtCode={#districtCode#}&businessZoneCode={#businessZoneCode#}&checkInDate={#checkInDate#}&checkOutDate={#checkOutDate#}&categories={#categories#}&lowestPrice={#lowestPrice#}&highestPrice={#highestPrice#}&broadbandService={#broadbandService#}&keyword={#keyword#}&landmark={#landmark#}&lng={#lng#}&lat={#lat#}&radius={#radius#}&pageIndex={#pageIndex#}&pageSize={#pageSize#}&sortType={#sortType#}&includeNonBooking={#includeNonBooking#}&includeGuaranteeable={#includeGuaranteeable#}&chainBrands={#chainBrands#}',
		'calltype' => 'POST',
		'cachetime' => 60
	),
	'hotelindex' => array(
		'url' => 'http://'.$APIURL.'/v1.0/hotel/search.ashx?act=getHotelSummaryList&cityId={#cityId#}&maxHotelCount={#maxHotelCount#}',
		'calltype' => 'POST',
		'cachetime' => 3600*8
	),
	'hotelshow' => array(
		'url' => 'http://'.$APIURL.'/v1.0/hotel/hotelinfo.ashx?act=getHotelInfo&hotelCode={#hotelCode#}',
		'calltype' => 'GET',
		'cachetime' => 3600*24*7
	),
	'hotelnearby' => array(
		'url' => 'http://'.$APIURL.'/v1.0/hotel/geospatials.ashx?act=getLandmarks&cityName={#cityName#}&keyword={#keyword#}&itemCount=10',
		'calltype' => 'GET',
		'cachetime' => 3600*24*30
	),
	'hotelallcity' => array(
		'url' => 'http://'.$APIURL.'/v1.0/hotel/geospatials.ashx?act=getRegions&includeDistricts={#includeDistricts#}&includeCommercials={#includeCommercials#}&includeLandmarks={#includeLandmarks#}',
		'calltype' => 'GET',
		'cachetime' => 3600*24*30
	),
	'hotelsinglecity' => array(
		'url' => 'http://'.$APIURL.'/v1.0/hotel/geospatials.ashx?act=getCity&cityCode={#cityCode#}&includeDistricts={#includeDistricts#}&includeCommercials={#includeCommercials#}&includeLandmarks={#includeLandmarks#}',
		'calltype' => 'GET',
		'cachetime' => 3600*24*30
	),
	'hotelchainbrands' => array( //酒店品牌信息
		'url' => 'http://'.$APIURL.'/v1.0/hotel/hotelinfo.ashx?act=getHotelChainBrands',
		'calltype' => 'GET',
		'cachetime' => 3600
	),
	'hotel0rderroomstatus' => array(
		'url' => 'http://'.$APIURL.'/v1.0/hotel/order.ashx?act=getOrderRoomStatus&hotelCode={#hotelCode#}&roomCode={#roomCode#}&roomRatePlan={#roomRatePlan#}&checkInDate={#checkInDate#}&checkOutDate={#checkOutDate#}',
		'calltype' => 'GET',
		'cachetime' => 60,
	),
	'hotelrooms' => array(
		'url' => 'http://'.$APIURL.'/v1.0/hotel/search.ashx?act=getHotelRooms&hotelCode={#hotelCode#}&checkInDate={#checkInDate#}&checkOutDate={#checkOutDate#}&lowestPrice={#lowestPrice#}&highestPrice={#highestPrice#}&broadbandService={#broadbandService#}&includeNonBooking={#includeNonBooking#}&includeGuaranteeable={#includeGuaranteeable#}',
		'calltype' => 'GET',
		'cachetime' => 0,
	),
	'hotelsubmitorder' => array(
		'url' => 'http://'.$APIURL.'/v1.0/hotel/order.ashx?act=submitOrder&hotelCode={#hotelCode#}&roomCode={#roomCode#}&roomRatePlan={#roomRatePlan#}&checkInDate={#checkInDate#}&checkOutDate={#checkOutDate#}&arrivalEarlyTime={#arrivalEarlyTime#}&arrivalLateTime={#arrivalLateTime#}&note={#note#}&roomCount={#roomCount#}&guest={#guest#}&contacterName={#contacterName#}&contacterMobile={#contacterMobile#}&contacterEMail={#contacterEMail#}&isGuaranteeable={#isGuaranteeable#}&ccHolderName={#ccHolderName#}&ccNumber={#ccNumber#}&ccValidYear={#ccValidYear#}&ccValidMonth={#ccValidMonth#}&ccVeryfyCode={#ccVeryfyCode#}&ccIdTypeCode={#ccIdTypeCode#}&ccIdNumber={#ccIdNumber#}',
		'calltype' => 'POST',
		'cachetime' => 0,
	),
	'hotelorderstutas' => array(
		'url' => 'http://'.$APIURL.'/v1.0/hotel/order.ashx?act=getOrderInfo&orderId={#orderId#}',
		'calltype' => 'POST',
		'cachetime' => 0,
	),
	'memberregsms' => array(
		'url'=> 'http://'.$APIURL.'/v1.0/generictools/mobileMessage.ashx?act=sendRegisterSMS&mobileNumber={#mobileNumber#}&password={#password#}&title={#title#}',
		'calltype'=> 'POST',
		'cachetime' =>0
	),
	'mobileregsms' => array(
		'url'=> 'http://'.$APIURL.'/v1.0/generictools/mobileMessage.ashx?act=sendPromoteRegisterSMS&mobileNumber={#mobileNumber#}&password={#password#}&title={#title#}&custom={#custom#}',
		'calltype'=> 'POST',
		'cachetime' =>0
	),
	'memberpwsms' => array(
		'url'=> 'http://'.$APIURL.'/v1.0/generictools/mobileMessage.ashx?act=sendGetpassSMS&mobileNumber={#mobileNumber#}&password={#password#}&title={#title#}',
		'calltype'=>'POST',
		'cachetime'=>0
	)
);

?>